<?php
if(!defined('GbIncl')){ ?>
<meta http-equiv="refresh" content="0;url=block.php" />
<?php }else{ ?>
<div class="section">
    <div class="section-title">Polling</div>
    <div class="section-content" align="justify">
        <ul class="nice-list">
            <li>
            <?php 
            $POLLING= mysql_query("SELECT * FROM MONEV_KUISIONER_SPM WHERE ID_MKS NOT LIKE '14-00-%' AND STATUS_MKS='1'");
            while ($DATAPOLLING=mysql_fetch_array($POLLING)) {?>
                <ul><b><?php echo"$DATAPOLLING[SOAL_MKS]"; ?></b>
                    <?php $OPTPOLLING= mysql_query("SELECT * FROM MONEV_KUISIONER_DETAIL_SPM WHERE ID_MKS='$DATAPOLLING[ID_MKS]'");
                    while ($DATAOPTPOLLING=mysql_fetch_array($OPTPOLLING)){?>
                    <li>
                    <form id="form1" name="form1" method="post" action="">
                      <p>
                        <label>
                          <input name="rpolling" type="radio" id="rpolling_0" value="radio" checked="checked" />
                        <?php echo"$DATAOPTPOLLING[OPT_MKSD1]";?></label>
                        <br />
                        <label>
                          <input type="radio" name="rpolling" value="radio" id="rpolling_1" />
                          <?php echo"$DATAOPTPOLLING[OPT_MKSD2]";?></label>
                        <br />
                        <label>
                          <input type="radio" name="rpolling" value="radio" id="rpolling_2" />
                          <?php echo"$DATAOPTPOLLING[OPT_MKSD3]";?></label>
                        <br />
                        <label>
                          <input type="radio" name="rpolling" value="radio" id="rpolling_3" />
                          <?php echo"$DATAOPTPOLLING[OPT_MKSD4]";?></label>
                        <br />
                        <label>
                          <input type="radio" name="rpolling" value="radio" id="rpolling_5" />
                          <?php echo"$DATAOPTPOLLING[OPT_MKSD5]";?></label>
                        <br />
                      </p>
                    <?php if (isset($_SESSION['login'])){?>
                        <input type="submit" class="button" value="Go" />
                        <?php }else {?>
                            Untuk Menjawab Harus Login
                        <?php }?>
                    </form>
                    </li>
                    <?php }?>
                </ul>
            <?php } ?>
            </li>
        </ul>
    </div>
</div>
<br />
<?php }?>

<?php
/*

*/
?>
